package edu.ccut.saturn.studio.naviagtor.actions;

import org.eclipse.jface.wizard.WizardDialog;
import org.eclipse.ui.PlatformUI;

import edu.ccut.saturn.studio.Activator;
import edu.ccut.saturn.studio.Images;

//import com.saturn.dataEntity.model.Parsedbdataconnect;

import edu.ccut.saturn.studio.core.util.action.SaturnAction;
import edu.ccut.saturn.studio.core.util.eclipse.Messages;
import edu.ccut.saturn.studio.saturndata.wizard.SaturnDataWizards;

/**
 * 
 * @author Bai Yucheng 2007-11-02
 */
public class NewSaturnDataItemAction extends SaturnAction {

	public NewSaturnDataItemAction() {
		setText(Messages.getString("NewSaturnDataItemAction.Saturndata"));  //$NON-NLS-1$
		setImageDescriptor(Activator.getImageDescriptor(Images.NEWSATURN_DATAITEM_ACTION));
	}

	public void run() {

			SaturnDataWizards newValidateFileWizard = new SaturnDataWizards();
			newValidateFileWizard.setSelection(super.getStructuredSelection());
			newValidateFileWizard.setWorkbench(PlatformUI.getWorkbench());
			WizardDialog wizarddialog = new WizardDialog(PlatformUI.getWorkbench()
					.getActiveWorkbenchWindow().getShell(), newValidateFileWizard);
			wizarddialog.open();
	
	}
}


